Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

517
Views
error CS8773: "La función 'directiva de uso global' no está disponible en C# 9.0" después de la degradación de net6.0 a net5.0

Tengo un proyecto que se creó inicialmente para .NET 6, pero luego necesitaba cambiarlo a .NET 5. Cambié el marco de destino en Propiedades del proyecto e intenté compilar. Como resultado, recibí un montón de errores:

 GlobalUsings.g.cs(2,1,2,29): error CS8773: Feature 'global using directive' is not available in C# 9.0. Please use language version 10.0 or greater.

El archivo GlobalUsings.g.cs se crea automáticamente y vuelve a aparecer cada vez que se compila.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Finalmente, descubrí que el motivo es una propiedad adicional ImplicitUsings en el archivo del proyecto que no es compatible con .net 5.0.

 <PropertyGroup> <TargetFramework>net5.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup>

Necesitaba eliminar ImplicitUsings del archivo.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!